package com.ruoyi.wcf.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品编号对象 wcf_product_model
 *
 * @author WZP
 * @date 2022-04-02
 */
public class WcfProductModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品编号id */
    @Excel(name = "产品编号id")
    private Long modelId;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private String modelName;

    /** 分类id */
    @Excel(name = "分类id")
    private Long classId;

    /** 产品价格 */
    @Excel(name = "产品价格")
    private BigDecimal modelPrice;

    /** 状态（0-待上架，1-上架） */
    @Excel(name = "状态", readConverterExp = "0=-待上架，1-上架")
    private Integer status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 删除标记（0-正常，1-删除） */
    @Excel(name = "删除标记", readConverterExp = "0=-正常，1-删除")
    private Integer delFlag;

    /* 产屁适配对象列表 */
    private List<WcfFitter> fitterList;

    public List<WcfFitter> getFitterList() {
        return fitterList;
    }

    public void setFitterList(List<WcfFitter> fitterList) {
        this.fitterList = fitterList;
    }

    public void setModelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getModelId()
    {
        return modelId;
    }
    public void setModelName(String modelName)
    {
        this.modelName = modelName;
    }

    public String getModelName()
    {
        return modelName;
    }
    public void setClassId(Long classId)
    {
        this.classId = classId;
    }

    public Long getClassId()
    {
        return classId;
    }
    public void setModelPrice(BigDecimal modelPrice)
    {
        this.modelPrice = modelPrice;
    }

    public BigDecimal getModelPrice()
    {
        return modelPrice;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("modelId", getModelId())
            .append("modelName", getModelName())
            .append("classId", getClassId())
            .append("modelPrice", getModelPrice())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createAt", getCreateAt())
            .append("updateAt", getUpdateAt())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
